import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

import alias from '@rollup/plugin-alias'
import { resolve } from 'path'
const projectRootDir = resolve(__dirname);

// https://vitejs.dev/config/
export default defineConfig({
  resolve:{
    alias: {
      "@src": resolve(projectRootDir, "src"),
      '@/': `${resolve(projectRootDir, "src")}/`,
    },
  },
  plugins: [
    vue(),
    alias()
  ],
  envDir: './env',
  envPrefix: ['VITE_','DZV_'],
  /*
  css:{
    preprocessorOptions:{
      scss:{
        additionalData: `@use "./src/styles/element/index.scss" as *;`
      }
    }
  }
  */
})
